﻿using IServices;
using Microsoft.AspNetCore.Mvc;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Y2.Filters;

namespace Y2.Controllers
{
    [LoginFilter]
    public class engage_resumeCxController : Controller
    {
        private readonly Iengage_resume he;

        public engage_resumeCxController(Iengage_resume he)
        {
            this.he = he;
        }

        public IActionResult engage_resumeCx()
        {
            return View();
        }

        public IActionResult engage_resumeCxQuer(int? id)
        {
            ViewBag.res_id = id;
            return View();
        }
        //简历录用通过查询
        public async Task<IActionResult> Lycx(int currentPage, int pageSize)
        {
            return Content(JsonConvert.SerializeObject(await he.Lycx(currentPage, pageSize)));
        }
    }
}
